<template>
  <div class="left-menu-wrap">
    <div class="left">
      <div class="ipt"></div>
      <div class="mid">
        <span class="menu-item-active">前端</span>
        <span class="menu-item">后端</span>
        <span class="menu-item">运维</span>
        <span class="menu-item">物联网</span>
      </div>
    </div>
    <div class="main">
      <div class="top"></div>
      <div class="content">
        <h1>content</h1>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "SiderBarLeft",
};
</script>

<style>
.left-menu-wrap {
  display: flex;
  height: 100%;
  width: 100%;
  /* background-color: pink; */
}

/* 左侧菜单区域 */
.left {
  display: flex;
  flex-direction: column;
  width: 200px;
  background-color: rgb(0, 20, 39);
}

.ipt {
  width: 160px;
  height: 40px;
  margin: 20px 20px;
  background-color: #666;
}

.mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: left;
  color: #fff;
  /* font-size: 25px; */
}

.menu-item {
  height: 60px;
  text-align: center;
  line-height: 60px;
}

.menu-item-active {
  height: 60px;
  text-align: center;
  line-height: 60px;
  background-color: #1890FF;
}

/* 主区域 */
.main {
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: #eff1f4;
}

.top {
  height: 60px;
  background-color: #fefefe;
}

.content {
  flex: 1;
  margin: 30px;
  border-radius: 10px;
  background: #fefefe;
  box-shadow: 0px 0px 5px #0000007e;
  padding: 10px;
}
</style>